package com.itxuhang.mvc.converter;

public class IntegerTypeHandler implements TypeHandler{
    @Override
    public boolean supports(Class type) {
        return type == Integer.class;
    }

    @Override
    public Object resoleValue(String[] value) {
        return Integer.parseInt(value[0]);
    }
}
